package com.woniu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="HisMedicine对象", description="")
@Document(indexName = "medicine")
public class HisMedicine implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "medicine_id", type = IdType.AUTO)
    @Id
    private Integer medicineId;

    @ApiModelProperty(value = "批准文号")
    private String approvalNumber;

    @ApiModelProperty(value = "规格")
    private String medicineSpecifications;

    @NotNull(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String medicineName;

    @ApiModelProperty(value = "生产企业")
    private String medicineManufacturer;

    @ApiModelProperty(value = "条形码")
    private String medicineBarcode;

    @ApiModelProperty(value = "剂型")
    private String medicineForm;

    @ApiModelProperty(value = "批发价格")
    private String medicineWholesalePrice;

    @ApiModelProperty(value = "零售价格")
    private String medicineRetailPrice;

    @ApiModelProperty(value = "记录新增时间")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    private LocalDateTime rawUpdateTime;


}
